const mongoose = require('mongoose');
const { Schema } = mongoose;
//成本对象

const costSchame = new Schema({
  id: String,//编号
  name: String,//成本名称
  price: Number,//开销单价
  number: Number,//开销数量
  cost: Number,//开销金额
  costDate: Date,//开销时间
  purpose: String,//用途
});

const costModel = mongoose.model('cost',costSchame);

module.exports = costModel;